﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="com.bjhb.wuranyuan.pojo.User"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>header</title>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery.js"></script>
<script src="../js/mainjs.js"></script>
</head>
<body>
<div id="headerTop">
  <div class="logo floatLeft">平谷环保局</div>
  <div class="username floatRight">
  <table width="317" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <%
  DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
  %>
    <td width="221" height="20" align="right"><div class="headToptext">欢迎您：<span><%=((User)session.getAttribute("user")).getUserName() %></span>今天是：<span><%=df.format(new Date()) %></span>所属单位：<span><%=((User)session.getAttribute("user")).getDepartment() %></span></div></td>
  </tr>
</table>
  <table width="328" border="0" cellspacing="0" cellpadding="0" class="headerTable">
    <tr>
      <td width="8%" align="right"></td>
      <td width="17%"><img src="../images/quit.gif" /><a href="../logout.htm">退出系统</a></td>
    </tr>
  </table>
  </div>
</div>
<div id="headerNav">

</div>
</body>
</html>
